<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
                <h2>Add your comment</h2>
                <asp:Label ID="lblTitle" AssociatedControlID="txtTitle" Text="Title" runat="server" /><br />
                <asp:TextBox ID="txtTitle" MaxLength="500" Columns="40" runat="server" /><br />
                <asp:RequiredFieldValidator ID="valTitleReq" ControlToValidate="txtTitle" ValidationGroup="AddComment" Display="Dynamic" ErrorMessage="Title is required.<br />" runat="server" />
                <asp:Label ID="lblComment" AssociatedControlID="txtComment" Text="Comment" runat="server" /><br />
                <asp:TextBox ID="txtComment" MaxLength="2000" Rows="10" Columns="40" TextMode="MultiLine" runat="server" /><br />
                <asp:RequiredFieldValidator ID="valCommentReq" ControlToValidate="txtComment" ValidationGroup="AddComment" Display="Dynamic" ErrorMessage="Comment is required.<br />" runat="server" />
                <asp:Button ID="btnAddComment" Text="Add Comment" OnClick="btnAddComment_Click" ValidationGroup="AddComment" runat="server" />
</asp:Content>

